<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<include file="Public/title" />
    <style type="text/css">
        .search{float:right;margin-right:30px;}
        .y{
        	color: #fb9337;
        }
    </style>
</head>

<body>
<div class="mainWrap">
    <!--标题-->
    <form action="{:U('sync_agent')}" method="post" enctype="multipart/form-data">
    <div class="mainWrapHeader">
        <h1 class="mainWrapTit">{$seotitle}
            <a href="{:U('add')}" class="btn btn_edit"><span>添加</span></a>
            <!-- <label class="search">
                <input type="text" name="key" id="key" value="{$key}" class="sys_text"/>
                <a href="javascript:;" class="btn btn_search" id="search_btn"><span>搜索</span></a>
            </label> -->
        </h1>
    </div>
    </form>
    <!--标题-->
    
    <div class="mainWrapBd">
        
        <form action="{:U('batchDo')}" method="post" name="doForm" onsubmit="return batchConfirm(this);">
        <!--列表-->
        <table cellpadding="0" cellspacing="0" border="0" class="stdtable stdtablelist">
            <colgroup>
                <col style="width:50px;" />
                <col style="width:600px;" />
                <col />
                
            </colgroup>
            <thead>
                
            </thead>
            <tbody>
                <volist name="info" id="fo">
                	<tr class="y">
                            <td>{$fo.id}</td>
                            <td>{$fo.title}</td>
                			<td>
                				
                        		<a href="{:U('delete',array('id'=>$fo['id']))}" onclick="return confirm('确认删除吗？')">删除</a> &nbsp;
                			</td>
                	</tr>
                	<?php
                		$er_info = $fo['childs'];
                	?>
            		<volist name="er_info" id="er">
            			<tr class='e'>
                            <td>{$er.id}</td>
                            <td>|------------{$er.title}</td>
            				<td>
                				
                        		<a href="{:U('delete',array('id'=>$er['id']))}" onclick="return confirm('确认删除吗？')">删除</a> &nbsp;
                			</td>
            			</tr>

            			<?php
	                		$san_info = $er['childs'];
	                	?>
	            		<volist name="san_info" id="san">
	            			<tr class='s'>
                                <td>{$san.id}</td>
                                <td>|-----------------------{$san.title}</td>
	            				<td>
	                				 
	                        		<a href="{:U('delete',array('id'=>$san['id']))}" onclick="return confirm('确认删除吗？')">删除</a> &nbsp;
	                			</td>
	            			</tr>
	            		</volist>

            		</volist>
                </volist>
                
                </if>
            </tbody>
        </table>
        <!--列表-->
        
        <!--工具-->
        <div class="tableTools clearfix">
            <div class="tableOptions fl">
            </div>
            <div class="fr">
                {$pages['show']}
            </div>
        </div>
        <!--工具-->
        </form>
    </div>
</div>
</body>
<script type="text/javascript">
    window.onload = function(){
        document.getElementById('search_btn').onclick = function(){
            var key = document.getElementById('key').value;
            location.href = "{:U('Seller/index')}?key=" + key;
        }
    }
</script>
</html>